﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="RssDoc.aspx.cs" Inherits="RssDoc" Title="Untitled Page" MaintainScrollPositionOnPostback="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="mainContentPlaceHolder" Runat="Server">
<h2>RSS文章：<asp:Label ID="lblColumn" runat="server"></asp:Label></h2>
<p class="EditItem">
<asp:LinkButton ID="btnAddSelected" runat="server" Text="将选中项添加到文档库" 
		onclick="btnAddSelected_Click"></asp:LinkButton>
<asp:LinkButton ID="btnDeleteSelected" runat="server" Text="删除选中项" 
		OnClientClick="return confirm('确定要删除吗？\n该操作无法撤销。');" 
		onclick="btnDeleteSelected_Click"></asp:LinkButton>
<asp:LinkButton ID="btnAddAll" runat="server" Text="将所有项添加到文档库" 
		onclick="btnAddAll_Click"></asp:LinkButton>
<asp:LinkButton ID="btnDeleteAll" runat="server" Text="删除所有项" 
		OnClientClick="return confirm('确定要删除吗？\n该操作无法撤销。');" 
		onclick="btnDeleteAll_Click"></asp:LinkButton>
</p>
	<asp:ListView ID="ListView1" runat="server" DataKeyNames="Id" 
		onitemcommand="ListView1_ItemCommand" onitemdatabound="ListView1_ItemDataBound">
	<LayoutTemplate>
	<div id="itemPlaceholder" runat="server"></div>
	</LayoutTemplate>
	<ItemTemplate>
	<div>
		<h3><asp:CheckBox ID='chkSelect' runat="server" />
		<a href='<%# Eval("Url") %>' target="_blank"><%# Eval("Title") %></a></h3>
		<p class="Summary"><%# Eval("Summary") %></p>
		<p class="Summary">来源：<a href='<%# Eval("RssUrl") %>' target="_blank"><%# Eval("RssTitle") %></a></p>
		<p class="ItemCommand">
			<asp:LinkButton ID="btnAdd" runat="server" CommandName="AddToDocument" CommandArgument='<%# Eval("Id") %>' Text="添加到文档库"></asp:LinkButton>
			<asp:LinkButton ID="btnDelete" runat="server" CommandName="DeleteFormLibrary" CommandArgument='<%# Eval("Id") %>' Text="删除" OnClientClick="return confirm('确定要删除吗？\n该操作无法撤销。');"></asp:LinkButton>
		</p>
	</div>
	</ItemTemplate>
	<ItemSeparatorTemplate><hr /></ItemSeparatorTemplate>
	</asp:ListView>
</asp:Content>

